const state = {
  name: 'page',
  model: {},
  loading: false
}
const actions = {
  setModel({
    state,
    commit
  }, data) {
    commit('setModel', data)
  },
  loadingStatus({
    state,
    commit
  }, val) {
    commit('loadStatus', val)
  }
}
const mutations = {
  setModel(state, data) {
    state.model = {
      ...data
    }
  },
  loadStatus(state, data) {
    state.loading = data
  }
}
const getters = {

}

export default {
  state,
  actions,
  mutations,
  getters
}
